package cn.dust.design.pattern.structural.facade.Advertisement;

public class ClientServerFacade {
    private CheckWord checkWord;
    private Charge charge;
    private TypeString typeString;
    String advertisement;

    public ClientServerFacade(String advertisement) {
        this.advertisement = advertisement;
        checkWord=new CheckWord(advertisement);
        charge=new Charge(checkWord);
        typeString=new TypeString(advertisement);
    }

    public void doAdvertisement(){
        checkWord.setChargeAmount();
        charge.setCharge();
        charge.giveCharge();
        typeString.typeSeting();
    }

}
